import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/components/Main'
import CategoryCreate from '@/components/CategoryCreate'
import CategoryEdit from '@/components/CategoryCreate'
import CategoryList from '@/components/CategoryList'
import ItemsCreate from '@/components/ItemsCreate'
import ItemsEdit from '@/components/ItemsCreate'
import ItemsList from '@/components/ItemsList'
import HeroEdit from '@/components/HeroCreate'
import HeroList from '@/components/HeroList'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Main',
      component: Main,
      children: [
        {
          path: '/categories/create',
          component: CategoryCreate
        },
        {
          path: '/categories/list',
          component: CategoryList
        },
        {
          path: '/categories/edit',
          component: CategoryEdit,
        },
        {
          path: '/items/create',
          component: ItemsCreate
        },
        {
          path: '/items/list',
          component: ItemsList
        },
        {
          path: '/items/edit',
          component: ItemsEdit,
        },
        {
          path: '/hero/list',
          component: HeroList
        },
        {
          path: '/hero/edit',
          component: HeroEdit,
        }

      ]
    }
    ]
})
